package com.huakang.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * reginform
 * @author 
 */
public class Reginform implements Serializable {
    private Integer rgid;

    private Integer pid;

    private Date rgdate;

    private Integer kid;

    private Integer did;

    private Double rgprice;

    private static final long serialVersionUID = 1L;

    public Integer getRgid() {
        return rgid;
    }

    public void setRgid(Integer rgid) {
        this.rgid = rgid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getRgdate() {
        return rgdate;
    }

    public void setRgdate(Date rgdate) {
        this.rgdate = rgdate;
    }

    public Integer getKid() {
        return kid;
    }

    public void setKid(Integer kid) {
        this.kid = kid;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Double getRgprice() {
        return rgprice;
    }

    public void setRgprice(Double rgprice) {
        this.rgprice = rgprice;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Reginform other = (Reginform) that;
        return (this.getRgid() == null ? other.getRgid() == null : this.getRgid().equals(other.getRgid()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getRgdate() == null ? other.getRgdate() == null : this.getRgdate().equals(other.getRgdate()))
            && (this.getKid() == null ? other.getKid() == null : this.getKid().equals(other.getKid()))
            && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getRgprice() == null ? other.getRgprice() == null : this.getRgprice().equals(other.getRgprice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRgid() == null) ? 0 : getRgid().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getRgdate() == null) ? 0 : getRgdate().hashCode());
        result = prime * result + ((getKid() == null) ? 0 : getKid().hashCode());
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getRgprice() == null) ? 0 : getRgprice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rgid=").append(rgid);
        sb.append(", pid=").append(pid);
        sb.append(", rgdate=").append(rgdate);
        sb.append(", kid=").append(kid);
        sb.append(", did=").append(did);
        sb.append(", rgprice=").append(rgprice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}